package im.starchat.chat.rest.model;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by liuchao on 3/12/16.
 */
public class GiftBean implements Parcelable {

    private int id;
    private String name;
    private int amount;
    private String image;
    private String big_image;
    private String direction;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getAmount() {
        return amount;
    }

    public void setAmount(int amount) {
        this.amount = amount;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getImage() {
        return image;
    }

    public void setImage(String image) {
        this.image = image;
    }

    public String getBig_image() {
        return big_image;
    }

    public void setBig_image(String big_image) {
        this.big_image = big_image;
    }

    public String getDirection() {
        return direction;
    }

    public void setDirection(String direction) {
        this.direction = direction;
    }
    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeInt(this.id);
        dest.writeString(this.name);
        dest.writeInt(this.amount);
        dest.writeString(this.image);
    }

    public GiftBean() {
    }

    protected GiftBean(Parcel in) {
        this.id = in.readInt();
        this.name = in.readString();
        this.amount = in.readInt();
        this.image = in.readString();
    }

    public static final Parcelable.Creator<GiftBean> CREATOR = new Parcelable.Creator<GiftBean>() {
        public GiftBean createFromParcel(Parcel source) {
            return new GiftBean(source);
        }

        public GiftBean[] newArray(int size) {
            return new GiftBean[size];
        }
    };
}
